obj1=test.o sum.o sub.o
obj2=sum.o sub.o

libmymath.a:$(obj1)
	ar -rc $@ $(obj2)
%.o:%.cc
	g++ -c $<
%.o:./static_lib_src/%.cc
	g++ -c $<

.PHONY:clean
clean:
	rm -f *.o test
	rm -f libmymath.a
.PHONY:output
output:
	rm -rf static_lib_output
	mkdir static_lib_output
	cp -rf ./static_lib_src/*.h static_lib_output 
	cp libmymath.a static_lib_output
.PHONY:create
create:
	g++ test.o -I./static_lib_output -L./static_lib_output -lmymath -o test -std=c++11
